package com.kulian.Signalling.distribution.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kulian.Signalling.distribution.converter.AppConverter;
import com.kulian.Signalling.distribution.converter.PackageConverter;
import com.kulian.Signalling.distribution.mapper.PackageMapper;
import com.kulian.Signalling.distribution.mode.bo.PackageBO;
import com.kulian.Signalling.distribution.service.PackageServer;
import com.kulian.Signalling.distribution.vo.PackageVO;
import com.kulian.Signalling.distribution.mode.entity.Package;
import com.kulian.Signalling.system.mode.bo.UserBO;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class PackageServiceImpl extends ServiceImpl<PackageMapper, Package> implements PackageServer {

    @Resource
    private final PackageConverter packageConverter;

    @Override
    public PackageVO getPackageInfo(String id) {
        PackageBO packageBO = this.baseMapper.getPackageInfo(id);

        return packageConverter.toPackageInfoVo(packageBO);

    }
}
